<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<title>DSP: DSP.h Source File</title>

<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css" />

<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>

</head>
<body>
<div id="top"><!-- do not remove this div! -->


<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  
  
  <td style="padding-left: 0.5em;">
   <div id="projectname">DSP
   &#160;<span id="projectnumber">1.1.0</span>
   </div>
   
  </td>
  
  
  
 </tr>
 </tbody>
</table>
</div>

<!-- Generated by Doxygen 1.7.6.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
    </ul>
  </div>
</div>
<div class="header">
  <div class="headertitle">
<div class="title">DSP.h</div>  </div>
</div><!--header-->
<div class="contents">
<div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="preprocessor">#ifndef QDSP_H</span>
<a name="l00002"></a>00002 <span class="preprocessor"></span><span class="preprocessor">#define QDSP_H</span>
<a name="l00003"></a>00003 <span class="preprocessor"></span>
<a name="l00004"></a>00004 <span class="preprocessor">#include &lt;QObject&gt;</span>
<a name="l00005"></a>00005 <span class="preprocessor">#include &lt;math.h&gt;</span>
<a name="l00006"></a>00006 
<a name="l00007"></a>00007 <span class="keyword">class </span>FFTPrivate;
<a name="l00008"></a>00008 
<a name="l00009"></a>00009 <span class="keyword">namespace </span>DSP {
<a name="l00010"></a>00010     <span class="keyword">const</span> <span class="keywordtype">float</span>  PI=3.14159265358979f;
<a name="l00011"></a>00011     <span class="keyword">const</span> <span class="keywordtype">float</span> RADIANT = PI/180;
<a name="l00012"></a>00012 
<a name="l00013"></a><a class="code" href="class_d_s_p_1_1_f_f_t.html">00013</a>     <span class="keyword">class </span><a class="code" href="class_d_s_p_1_1_f_f_t.html">FFT</a> : QObject {
<a name="l00014"></a>00014         Q_OBJECT
<a name="l00015"></a>00015         Q_DECLARE_PRIVATE(<a class="code" href="class_d_s_p_1_1_f_f_t.html">FFT</a>)
<a name="l00016"></a>00016         Q_CLASSINFO(<span class="stringliteral">&quot;Author&quot;</span>, <span class="stringliteral">&quot;Sebastiano Galazzo&quot;</span>)
<a name="l00017"></a>00017         Q_CLASSINFO(<span class="stringliteral">&quot;Email&quot;</span>, <span class="stringliteral">&quot;sebastiano.galazzo@gmail.com&quot;</span>)
<a name="l00018"></a>00018 
<a name="l00019"></a>00019     <span class="keyword">public</span>:
<a name="l00026"></a>00026         <span class="keyword">explicit</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a81214624b6c36f8472c641c127951142" title="Constructor.">FFT</a>(<span class="keyword">const</span> <span class="keywordtype">long</span> length, QObject *parent = 0);
<a name="l00027"></a>00027 
<a name="l00035"></a>00035         <span class="keyword">explicit</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a81214624b6c36f8472c641c127951142" title="Constructor.">FFT</a>(<span class="keyword">const</span> <span class="keywordtype">long</span> width, <span class="keyword">const</span> <span class="keywordtype">long</span> height, QObject *parent = 0);
<a name="l00036"></a>00036 
<a name="l00040"></a>00040         <span class="keyword">virtual</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a39d9f1381e21427118cc1d4f5647674b" title="Destructor.">~FFT</a>();
<a name="l00041"></a>00041 
<a name="l00048"></a>00048         Q_INVOKABLE <span class="keywordtype">void</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#af86f47bb474c48bc474c3334ad450666" title="Compute the 1D FFT.">compute</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> source [], <span class="keywordtype">float</span> result []);
<a name="l00049"></a>00049 
<a name="l00056"></a>00056         Q_INVOKABLE <span class="keywordtype">void</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a79cdc6dd2155ab74711fd477c44393b7" title="Compute the inverse 1D FFT.">inverse</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> source [], <span class="keywordtype">float</span> result []);
<a name="l00057"></a>00057 
<a name="l00064"></a>00064         Q_INVOKABLE <span class="keywordtype">void</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a6b6b5cc8ea2b28f338b76c0681f826b2" title="Rescale values after forward FFT.">rescale</a>(<span class="keywordtype">float</span> source []) <span class="keyword">const</span>;
<a name="l00065"></a>00065 
<a name="l00072"></a>00072         Q_INVOKABLE <span class="keywordtype">void</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a7ca92f0146f7190f96d666aa439bc354" title="Compute the 2D FFT.">compute2d</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> source [], <span class="keywordtype">float</span> result []);
<a name="l00073"></a>00073 
<a name="l00080"></a>00080         Q_INVOKABLE <span class="keywordtype">void</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#ab082547f7b5b7b8980cd47025017b2ec" title="Compute the inverse 2D FFT.">inverse2d</a>(<span class="keyword">const</span> <span class="keywordtype">float</span> source [], <span class="keywordtype">float</span> result []);
<a name="l00081"></a>00081 
<a name="l00082"></a>00082     <span class="keyword">protected</span>:
<a name="l00083"></a>00083 
<a name="l00087"></a><a class="code" href="class_d_s_p_1_1_f_f_t.html#a319ca2e4ff5fb976ff5efe7b172c77f9">00087</a>         FFTPrivate* <span class="keyword">const</span> <a class="code" href="class_d_s_p_1_1_f_f_t.html#a319ca2e4ff5fb976ff5efe7b172c77f9">d_ptr</a>;
<a name="l00088"></a>00088 
<a name="l00089"></a>00089     <span class="keyword">private</span>:
<a name="l00093"></a>00093           <span class="keywordtype">long</span> width;
<a name="l00094"></a>00094 
<a name="l00098"></a>00098         <span class="keywordtype">long</span> height;
<a name="l00099"></a>00099 
<a name="l00100"></a>00100     };
<a name="l00101"></a>00101 }
<a name="l00102"></a>00102 
<a name="l00103"></a>00103 <span class="preprocessor">#endif // QDSP_H</span>
</pre></div></div><!-- contents -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Classes</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Variables</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>



<hr class="footer"/><address class="footer"><small>
Generated on Sun Nov 11 2012 15:36:43 for DSP by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.7.6.1
</small></address>

</body>
</html>
